{% extends "base.html" %}
{% block head %}
{{ super() }}
{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                {% set services = ('service', 'admin', 'director', 'super') %}
                {% set reviewers = ('admin', 'super', 'finance', 'director', 'manage', 'review') %}
                {% if session['role'] in services %}
                <li id="nav_loan_notification">
                    <a href="{{ url_for('personal_center.loan') }}">
                    贷款通知
                    <span style="display: none;" id="notification-message-loan">
                            <img src="{{ url_for('static', filename='img/u134.png')}}">
                        </span>
                    </a>
                </li>
                {% endif %}
                {% if session['role'] in reviewers %}
                <li id="nav_review_notification">
                    <a href="{{ url_for('personal_center.review') }}">
                    审核通知
                    <span style="display: none;" id="notification-message-review">
                            <img src="{{ url_for('static', filename='img/u134.png')}}">
                        </span>
                    </a>
                </li>
                {% endif %}
                {% if session['role'] in services %}
                <li id="nav_distribute_notification">
                    <a href="{{ url_for('personal_center.distribute') }}">
                    分单通知
                    <span style="display: none;" id="notification-message-distribute">
                            <img src="{{ url_for('static', filename='img/u134.png')}}">
                        </span>
                    </a>
                </li>
                {% endif %}
                
                <li id="nav_edit_password">
                    <a href="{{ url_for('personal_center.edit_password') }}">修改密码</a>
                </li>
            </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            {% for message in get_flashed_messages() %}
            <div class="alert alert-warning">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ message }}
            </div>
            {% endfor %}

            {% block page_content %}{% endblock %}
        </div>
    </div>
</div>
{% endblock %}
{% block scripts %}
{{ super() }}
<script src="{{ url_for('static', filename='js/center_message.js') }}"></script>

{% endblock %}
